package com.atguigu.srb.sms.feignClient;

import com.atguigu.srb.result.ResponseVo;
import com.atguigu.srb.sms.feignClient.fallback.CoreFeignClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: CoreFeignClient
 * Package: com.atguigu.srb.sms.feignClient
 * Description:
 *
 * @Author 刘强
 * @Create 2024/4/23 9:27
 * @Version 1.0
 */
@FeignClient(value = "srb-service-core",fallback = CoreFeignClientFallback.class)
public interface CoreFeignClient {
    @ApiOperation("判断手机号是否已经注册使用")
    @GetMapping("/api/core/userInfo/isMobileUsed/{mobile}")
    public ResponseVo isMobileUsed(@PathVariable String  mobile);
}
